import { ref } from 'vue';

/**
 * 切换popper显示
 * @returns
 */
export function usePopperVisible() {
  const visible = ref(false);
  const open = () => {
    visible.value = true
  };
  const close = () => visible.value = false;
  return {
    visible,
    open,
    close,
  };
}